const Home = {
  // 查询更新后的sql语句
  selectHomeData(option) {
    return `select * from list_information `
  },

  // 进入商品详情页的sql语句
  selectShopDetail(option) {
    return `select home_id,home_title,home_des,home_price,pic_id,pic_src from home,home_src where home_id=${option} and home_id=pic_home_id`
  },

  // 查询该用户的购物车数据
  selectShopMessage(option) {
    return `select * from goods_cart where user_phone= ${option.tel}`
  },

  // 查询轮播数据
  selectRationData() {
    return `select * from rotation`
  },
}

exports = module.exports = Home
